package com.qyhl.webtv.module_user.shop.code;

import com.qyhl.webtv.commonlib.entity.user.ShoppingOrderBean;

public class ShopCodePresenter implements ShopCodeContract.ShopCodePresenter {
    private ShopCodeContract.ShopCodeView mView;
    private ShopCodeModel mModel;

    public ShopCodePresenter(ShopCodeContract.ShopCodeView mView) {
        this.mView = mView;
        this.mModel = new ShopCodeModel(this);
    }

    @Override
    public void getDetail(String id) {
        mModel.getDetail(id);
    }

    @Override
    public void setDetail(ShoppingOrderBean bean) {
        mView.setDetail(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
